<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div class="box">
        <div v-pre>{{msg1}}</div>
        <div v-text='msg2'></div>
        <div v-html='msg2'></div>
    </div>
    <script>
        let vm = new Vue({
            el: '.box',
            data: {
                msg2: '<h1>你好</h1>',
            }
        })
    </script>
</body>

</html>